package com.rock.upms.model;

import java.io.Serializable;

public class UpmsThirdBind implements Serializable {

	/**
	 * id
	 *
	 * @mbg.generated
	 */
	private Integer id;
	/**
	 * 第三方应用代码
	 *
	 * @mbg.generated
	 */
	private String thirdComcode;
	/**
	 * 第三方应用名称
	 *
	 * @mbg.generated
	 */
	private String thirdComname;
	/**
	 * 第三方应用标识ID
	 *
	 * @mbg.generated
	 */
	private String thirdId;
	/**
	 * 绑定手机号
	 *
	 * @mbg.generated
	 */
	private String mobilephone;
	/**
	 * 绑定时间
	 *
	 * @mbg.generated
	 */
	private String bindtime;
	/**
	 * 绑定设备类型
	 *
	 * @mbg.generated
	 */
	private String deviceType;
	/**
	 * 绑定的设备ID
	 *
	 * @mbg.generated
	 */
	private String deviceId;
	/**
	 * 删除标识
	 *
	 * @mbg.generated
	 */
	private String isDeleted;
	private static final long serialVersionUID = 1L;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getThirdComcode() {
		return thirdComcode;
	}

	public void setThirdComcode(String thirdComcode) {
		this.thirdComcode = thirdComcode;
	}

	public String getThirdComname() {
		return thirdComname;
	}

	public void setThirdComname(String thirdComname) {
		this.thirdComname = thirdComname;
	}

	public String getThirdId() {
		return thirdId;
	}

	public void setThirdId(String thirdId) {
		this.thirdId = thirdId;
	}

	public String getMobilephone() {
		return mobilephone;
	}

	public void setMobilephone(String mobilephone) {
		this.mobilephone = mobilephone;
	}

	public String getBindtime() {
		return bindtime;
	}

	public void setBindtime(String bindtime) {
		this.bindtime = bindtime;
	}

	public String getDeviceType() {
		return deviceType;
	}

	public void setDeviceType(String deviceType) {
		this.deviceType = deviceType;
	}

	public String getDeviceId() {
		return deviceId;
	}

	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}

	public String getIsDeleted() {
		return isDeleted;
	}

	public void setIsDeleted(String isDeleted) {
		this.isDeleted = isDeleted;
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(getClass().getSimpleName());
		sb.append(" [");
		sb.append("Hash = ").append(hashCode());
		sb.append(", id=").append(id);
		sb.append(", thirdComcode=").append(thirdComcode);
		sb.append(", thirdComname=").append(thirdComname);
		sb.append(", thirdId=").append(thirdId);
		sb.append(", mobilephone=").append(mobilephone);
		sb.append(", bindtime=").append(bindtime);
		sb.append(", deviceType=").append(deviceType);
		sb.append(", deviceId=").append(deviceId);
		sb.append(", isDeleted=").append(isDeleted);
		sb.append("]");
		return sb.toString();
	}

	@Override
	public boolean equals(Object that) {
		if (this == that) {
			return true;
		}
		if (that == null) {
			return false;
		}
		if (getClass() != that.getClass()) {
			return false;
		}
		UpmsThirdBind other = (UpmsThirdBind) that;
		return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
				&& (this.getThirdComcode() == null ? other.getThirdComcode() == null : this.getThirdComcode().equals(other.getThirdComcode()))
				&& (this.getThirdComname() == null ? other.getThirdComname() == null : this.getThirdComname().equals(other.getThirdComname()))
				&& (this.getThirdId() == null ? other.getThirdId() == null : this.getThirdId().equals(other.getThirdId()))
				&& (this.getMobilephone() == null ? other.getMobilephone() == null : this.getMobilephone().equals(other.getMobilephone()))
				&& (this.getBindtime() == null ? other.getBindtime() == null : this.getBindtime().equals(other.getBindtime()))
				&& (this.getDeviceType() == null ? other.getDeviceType() == null : this.getDeviceType().equals(other.getDeviceType()))
				&& (this.getDeviceId() == null ? other.getDeviceId() == null : this.getDeviceId().equals(other.getDeviceId()))
				&& (this.getIsDeleted() == null ? other.getIsDeleted() == null : this.getIsDeleted().equals(other.getIsDeleted()));
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
		result = prime * result + ((getThirdComcode() == null) ? 0 : getThirdComcode().hashCode());
		result = prime * result + ((getThirdComname() == null) ? 0 : getThirdComname().hashCode());
		result = prime * result + ((getThirdId() == null) ? 0 : getThirdId().hashCode());
		result = prime * result + ((getMobilephone() == null) ? 0 : getMobilephone().hashCode());
		result = prime * result + ((getBindtime() == null) ? 0 : getBindtime().hashCode());
		result = prime * result + ((getDeviceType() == null) ? 0 : getDeviceType().hashCode());
		result = prime * result + ((getDeviceId() == null) ? 0 : getDeviceId().hashCode());
		result = prime * result + ((getIsDeleted() == null) ? 0 : getIsDeleted().hashCode());
		return result;
	}
}